import random


def gen_captcha():
    captcha_str = ""
    for i in range(6):
        captcha_str += str(random.randint(0, 9))
    return captcha_str
